package org.noranj.me.server.data;

import java.util.HashMap;
import java.util.Map;

import org.noranj.me.server.dto.ConversationDTO;

public class DAService {

  private static DAService singleton=null;
  Map<String, ConversationDTO> conversation = new HashMap<String, ConversationDTO>();
  
  public static synchronized DAService getInstance() {
    if (singleton==null) {
      singleton = new DAService();
    }
    return (singleton);
  }
  
  private DAService() {
    super();
    initUsers();
  }
  
  final void initUsers() {
    ConversationDTO c = new ConversationDTO();
    c.setConversationText("John");
    conversation.put(c.getConversationText(), c);
  }

  public Map<String, ConversationDTO> getConversation() {
    return conversation;
  }

  public void setConversation(Map<String, ConversationDTO> conversation) {
    this.conversation = conversation;
  }
  
  
}
